<?php 
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Returns language string.
 * 
 * This function is related to DomSiteLanguageController
 * 
 * $params array can have these arguments<br>
 * key - language sentence<br>
 * _others_ - Will be used as language replacements. 
 * 
 * @param Array $params
 * @param Smarty $smarty
 * @return String
 */
function smarty_function_lang( $params, &$smarty) {
	if( class_exists('DomLanguageController',false) === true )
		return DomLanguageController::c()->getCurrentLanguage()->getLang( $params['key'], $params);
	else
		return '';
}


?>